import request from "@/utils/request"

// 列表
export function queryList(data) {
  return request({
    url: `/base/order-sku-commission/index`,
    method: "post",
    data,
  })
}
// 平台佣金设置-启用禁用
export function commissionStatus(data) {
  return request({
    url: `/base/order-sku-commission/status`,
    method: "POST",
    data,
  })
}
//平台佣金设置-创建
export function createCommission(data) {
  return request({
    url: `/base/order-sku-commission/create`,
    method: "POST",
    data,
  })
}
// 平台佣金设置-详情
export function getDetail(params) {
  return request({
    url: `/base/order-sku-commission/detail`,
    method: "get",
    params,
  })
}
//平台佣金设置-编辑
export function updateCommission(data) {
  return request({
    url: `/base/order-sku-commission//update`,
    method: "POST",
    data,
  })
}
//平台佣金设置-删除
export function commissionDelete(data) {
  return request({
    url: `/base/order-sku-commission/delete`,
    method: "POST",
    data,
  })
}
//平台佣金设置-批量修改佣金比例
export function commissionRate(data) {
  return request({
    url: `/base/order-sku-commission/rate`,
    method: "POST",
    data,
  })
}
